package cn.hbwe.pojo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 7组
 * @since 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pay")
public class Pay implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 病人id
     */
    private Integer patientId;

    /**
     * 预约id
     */
    private Integer bookingId;

    /**
     * 支付方式
     */
    private String payMethod;

    /**
     * 支付名称
     */
    private String payName;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 支付状态
     */
    private String status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
